#ifndef __MYSTRING_H_
#define __MYSTRING_H_

#define Init_MyString(obj, str) \
    MyString obj;               \
    Initiallize(&obj, str);
typedef struct String MyString;
struct String
{
    char *string;
    int size;

    // void(*Init)(MyString* obj,const char *str);
    void (*print)(MyString *obj);
    int (*isEqual)(MyString *obj1, MyString *obj2);
    int (*IsContains)(MyString *dest, MyString *src);
    int (*StrintSize)(MyString *obj);
    void (*removeString)(MyString *dest, const char *str);
    void (*insertString)(MyString *dest, const char *str, int index);
};

void Initialize(MyString *obj, const char *str);
void FreeMyString(MyString *obj);
#endif